From: kfraser@localhost.localdomain Date: Thu, 5 Oct 2006 15:05:12 +0000 (+0100) Subject: [NET] front: Fix size of grant_rx_ref[]. It should use the RX ring X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15615^2~44 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ad8133283375190c40adfb8025e51279d64a1b7e;p=xen.git [NET] front: Fix size of grant_rx_ref[]. It should use the RX ring size, rather than the TX ring size. Signed-off-by: Jose Renato Santos --- diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index b147ee0256..5519133cd4 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -165,7 +165,7 @@ struct netfront_info { grant_ref_t gref_tx_head; grant_ref_t grant_tx_ref[NET_TX_RING_SIZE + 1]; grant_ref_t gref_rx_head; - grant_ref_t grant_rx_ref[NET_TX_RING_SIZE]; + grant_ref_t grant_rx_ref[NET_RX_RING_SIZE]; struct xenbus_device *xbdev; int tx_ring_ref;